Skip to content

fix(math): unify vault precision and fee boundaries - #75

Merged
arisu6804 merged 3 commits into
YieldVault-Org:mainfrom
Jagadeeshftw:fix/issue-71-canonical-precision-policy
Aug 27, 2026
Merged

fix(math): unify vault precision and fee boundaries#75
arisu6804 merged 3 commits into
YieldVault-Org:mainfrom
Jagadeeshftw:fix/issue-71-canonical-precision-policy

Conversation

@Jagadeeshftw

@Jagadeeshftw Jagadeeshftw commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Establishes one canonical six-decimal precision policy for deposits, withdrawals, previews, and fee boundaries.
  • Adds deterministic conversion metadata and a deposit preview endpoint.
  • Rejects invalid, excessive, and fee-overflow inputs without mutating state.
  • Adds boundary, round-trip, fee, controller, and reconciliation coverage plus a precision runbook.

Validation

  • npm test — 74 passing
  • git diff --check — clean
  • Diff size: 502 changed lines

Issue

Closes #71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(backend): make fee and share calculations use one canonical precision policy

2 participants